@extends('layouts.base')      
@section('content')
<section class="Hui-article-box">
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
		<span class="c-gray en">&gt;</span>
		Banner管理
		<span class="c-gray en">&gt;</span>
		添加Banner<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a> </nav>
	<div class="Hui-article">
	<article class="cl pd-20">
      <form action="" method="post" class="form form-horizontal" id="submit-form">
		@csrf
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2"><span class="c-red">*</span>标题：</label>
			<div class="formControls col-xs-6 col-sm-7">
				<input type="text" class="input-text" value="" placeholder="请输入标题" id="title" name="title">
			</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2"><span class="c-red">*</span>Banner图片：</label>
			<div class="formControls col-xs-6 col-sm-7">
				<span class="btn-upload">
				  <a href="javascript:void();" class="btn btn-primary radius btn-upload"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
				  <input type="file" name="file" class="input-file" id="file">
				</span>
				
				<img src="" id="img_src" style="width: 50px;height: 50px;display: none;"/>
				<input type="hidden" name="img_url" id='img_url' value=""/>
				<!--<input type="hidden" name="thumb" id='thumb' value=""/>-->
			</div>
		</div>
		
		
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2"><span class="c-red">*</span>排序：</label>
			<div class="formControls col-xs-6 col-sm-7">
				<input type="text" class="input-text" value="5" placeholder="请输入排序" id="sort" name="sort">
			</div>
		</div>
		
		
		<div class="skin-minimal row cl">
			<label class="form-label col-xs-3 col-sm-2"><span class="c-red">*</span>状态：</label>
			<div class="formControls col-xs-6 col-sm-7">
				<div class="radio-box skin-minimal">
				    <input type="radio" id="radio-1" name="updown" value="1" checked>
				    <label for="radio-1">上架</label>
				  </div>
				  <div class="radio-box">
				    <input type="radio" id="radio-2" name="updown" value="0">
				    <label for="radio-2">下架</label>
				 </div>
			</div>
		</div>
		
		<div class="row cl">
		
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<input class="btn btn-primary radius" id="button-submit-add" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
	</article>
	</div>
</section>					
@endsection
 
 
@section('script')
<script>


var SCOPE = {
    'save_url' : '/system/banner/add',
    'jump_url' : '/system/banner/index',
    'upload_url':'/system/banner/upload'
}
  
</script>
 @endsection		